﻿namespace Jst.Application.Contracts.Services
{
    /// <summary>
    /// 简单的缓存接口，只有查询和添加，以后会进行扩展
    /// </summary>
    public interface ICachingProvider
    {
        Task<string?> GetAsync(string key);
        Task SetAsync(string key, string value, TimeSpan ttl);
        Task DelAsync(string key);
    }
}
